// <copyright file="CurrencyFormat.cs" company="YUIAsp.Net">
// Copyright (c) 2009 All Right Reserved
// </copyright>
// <author>raul popescu</author>
// <email>dev@yuiasp.net</email>
// <date>2009-01-30</date>
// <summary>YUIAsp.Net File</summary>

namespace YUIAspNet
{
    /// <summary>
    /// Represents a currency format of a DataTable column.
    /// </summary>
    public class CurrencyFormat : NumberFormat
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="CurrencyFormat"/> class.
        /// </summary>
        public CurrencyFormat()
        {
            // default currency option for USD
            Prefix = "$";
            DecimalPlaces = 2;
            DecimalSeparator = ".";
            ThousandsSeparator = ",";
        }

        /// <summary>
        /// Gets or sets the prefix.
        /// </summary>
        /// <value>The prefix.</value>
        public string Prefix { get; set; }

        /// <summary>
        /// Gets or sets the decimal separator.
        /// </summary>
        /// <value>The decimal separator.</value>
        public string DecimalSeparator { get; set; }
    }
}
